# coding: utf-8

from app.json.mysql.base import Base as BaseJson
from app.model.mysql.game_item import GameItem as GameItemModel


class GameItem(BaseJson):
    def __init__(self, model: GameItemModel):
        self.id = model.id
        self.title = model.title
        self.created_time = str(model.created_time)
        self.updated_time = str(model.updated_time)
        self.is_delete = model.is_delete
        self.g_id = model.g_id
        self.gc_id = model.gc_id
        self.p1 = model.p1
        self.p2 = model.p2
        self.p3 = model.p3
        self.p4 = model.p4
        self.p5 = model.p5
        self.p6 = model.p6
        self.p7 = model.p7
        self.p8 = model.p8
